<template>
	<view class="container_wrap">
		Current Count: {{ counter.count }}
	</view>
</template>


<script lang="ts" setup>
	import {
		onLoad,
		onShow
	} from "@dcloudio/uni-app";
	import { useCounterStore } from '@/stores/counter'
	// onLoad 接受 A 页面传递的参数
	onLoad((option) => {
		console.log("B 页面 onLoad:", option); //B 页面 onLoad: {id: '1', name: 'uniapp'}
	});

	onShow(() => {
		console.log("B 页面 onShow");
	});

	const counter = useCounterStore();
</script>

<style lang="scss" scoped>

</style>